package osm_to_speedsigns;

import java.util.StringTokenizer;

	public class MaxSpeedWay {

		private int wayID;
		private String author;
		private String dummy1;
		private String speed;
		private int speedValue;

		private int startNode;
		private int secondNode;
		private int bearing;
		private String direction;
		private String wayType;
		private String nodelist;
		private int farNode;
		private String oneWay;
		  
		  public MaxSpeedWay(String line) {
			StringTokenizer st = new StringTokenizer(line,",");
			this.wayID = Integer.parseInt(st.nextToken());
			this.author = st.nextToken();
			this.dummy1 = st.nextToken();
			this.speed = st.nextToken();
			StringTokenizer stSpeed = new StringTokenizer(this.speed," ");
			this.speedValue = Integer.parseInt(stSpeed.nextToken());
			this.startNode = Integer.parseInt(st.nextToken());
			this.secondNode = Integer.parseInt(st.nextToken());
			this.bearing = Integer.parseInt(st.nextToken());
			this.direction = st.nextToken();
			this.wayType = st.nextToken();
			this.nodelist = st.nextToken();
			this.farNode = Integer.parseInt(st.nextToken());
			this.oneWay = st.nextToken();

//			System.out.println(mainLoop + " : " + speed + " " + startNode + " " + endNode);
		}

		  public int getwayID() {
			    return this.wayID;
			  }
		  public String getauthor() {
			    return this.author;
			  }

		  public String getspeed() {
		    return this.speed;
		  }
		  
		  public int getspeedValue() {
			    return this.speedValue;
			  }
			  
		  
		  public int getstartNode() {
			    return this.startNode;
			  }
		  public int getsecondNode() {
			    return this.secondNode;
			  }
		  
		  public int getbearing() {
			    return this.bearing;
			  }
		  public String getdirection() {
			    return this.direction;
			  }
		  
		  public String getwayType() {
			    return this.wayType;
			  }

		  public String getnodelist() {
			    return this.nodelist;
			  }
		  
		  public int getfarNode() {
			    return this.farNode;
			  }
		  
		  public String getoneWay() {
			    return this.oneWay;
			  }

		}
